﻿Imports System.Text
Imports System.windows.forms
Module General

    Public IgnoreField As String = "<Ignore This Field>"
    Public Sub ShowErrorMessage(ex As Exception)
        Messagebox.show(ex.Message)
    End Sub

    Public Sub ShowGeneralMessage(ex As String)
        Messagebox.show(ex)
    End Sub


    Public Function SaveFile(SB As StringBuilder, FileName As String) As Boolean
        Try
            Using f As New IO.StreamWriter(FileName, False)
                f.WriteLine(SB.ToString)
                f.Close()
            End Using
        Catch ex As Exception
            Return False
        End Try
        Return True
    End Function
End Module
